

//路由菜单

export const menus = [
    {
        path: "/index/home",
        name: 'home',
        component: () => import("@/views/home/index.vue"),
        text: '首页',
        premession: 1,     //权限
        icon: "el-icon-s-home",
    },
    {
        path: "/index/tu",
        name: 'tubiao',
        component: () => import("@/views/tu/biao.vue"),
        text: '销售产品饼状图',
        premession: 1,     
        icon: "el-icon-s-marketing",
    },
    {
        path: "/index/user",
        name: 'user',
        component: () => import("@/views/user/index.vue"),
        text: '职工管理',
        icon: "el-icon-s-custom",
        redirect: '/index/user/list',
        premession: 3,
        children: [
            {
                path: "/index/user/list",
                name: 'userlist',
                component: () => import("@/views/user/list.vue"),
                text: '职工列表',
                premession: 3,               
                icon: "el-icon-tickets",
            },
            {
                path: "/index/user/add",
                name: 'useradd',
                component: () => import("@/views/user/add.vue"),
                text: '职工新增',
                premession: 3,               
                icon: "el-icon-circle-plus-outline",
            },
            {
                path: "/index/user/mine",
                name: 'usermine',
                component: () => import("@/views/user/mine.vue"),
                text: '个人中心',
                premession: 3,
                hide:true,
            },
        ]
    },
    {
        path:"/index/advise",
        name:"advise",
        text:"意见管理",
        component:()=>import("@/views/advise/index.vue"),
        icon:"el-icon-s-order",
        redirect:"/index/advise/add",
        premession:1,
        children:[
            {
                path:"/index/advise/add",
                name:"adviseadd",
                component:()=>import("@/views/advise/add.vue"),
                text:"发布意见",
                premession:1,
                icon:"el-icon-s-comment",
            },
            {
                path:"/index/advise/list",
                name:"adviselist",
                component:()=>import("@/views/advise/list.vue"),
                text:"意见列表",
                premession:1,
                icon:"el-icon-s-claim",
            },
            {
                path:"/index/advise/edit/:id",
                name:"adviseedit",
                component:()=>import("@/views/advise/edit.vue"),
                text:"编辑意见",
                premession:1,
                hide:true
            },
            {
                path:"/index/advise/reply/:id",
                name:"advisereply",
                component:()=>import("@/views/advise/reply.vue"),
                text:"回复意见",
                premession:1,
                hide:true
            },
        ]
    },
    {
        path: "/index/money",
        name: 'money',
        component: () => import("@/views/money/index.vue"),
        text: '薪资管理',
        icon: "el-icon-s-custom",
        redirect: '/index/money/list',
        premession: 1,
        children: [
            {
                path: "/index/money/list",
                name: 'moneylist',
                component: () => import("@/views/money/list.vue"),
                text: '薪资列表',
                premession: 3,               
                icon: "el-icon-tickets",
            },
            // {
            //     path: "/index/money/checks",
            //     name: 'moneychecks',
            //     component: () => import("@/views/money/checks.vue"),
            //     text: '考勤打卡',
            //     premession: 1,               
            //     icon: "el-icon-circle-plus-outline",
            // },
            {
                path: "/index/money/daka/:id",
                name: 'moneydaka',
                component: () => import("@/views/money/daka.vue"),
                text: '上班打卡',
                premession: 1,               
                icon: "el-icon-circle-plus-outline",
                hide:true
            },
            {
                path: "/index/money/daka1/:id",
                name: 'moneydaka1',
                component: () => import("@/views/money/daka1.vue"),
                text: '下班打卡',
                premession: 1,               
                icon: "el-icon-circle-plus-outline",
                hide:true
            },
        ]
    },
    {
        path: "/index/performance",
        name: 'performance',
        component: () => import("@/views/performance/index.vue"),
        text: '绩效管理',
        icon: "el-icon-s-custom",
        redirect: '/index/performance/list',
        premession: 3,
        children: [
            // {
            //     path: "/index/performance/list",
            //     name: 'performancelist',
            //     component: () => import("@/views/performance/list.vue"),
            //     text: '销售商品',
            //     premession: 1,               
            //     icon: "el-icon-tickets",
            // },
            {
                path: "/index/performance/sales",
                name: 'performancesales',
                component: () => import("@/views/performance/sales.vue"),
                text: '销售业绩',
                premession: 3,               
                icon: "el-icon-circle-plus-outline",
            },
        ]
    }
    
]